﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WeeklyUpdate.aspx.cs" Inherits="PMP.Report.WeeklyUpdate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Weekly Update</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Button ID="btnRefresh" runat="server" onclick="btnRefresh_Click" 
            Text="Refresh" />
    
    </div>
    <asp:GridView ID="grvWeeklyUpdate" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" ForeColor="#333333" 
        GridLines="Both">
        <RowStyle BackColor="#EFF3FB" />
        <Columns>
            <asp:BoundField DataField="team" HeaderText="team" SortExpression="team" />
            <asp:BoundField DataField="goal" HeaderText="goal" SortExpression="goal" />
            <asp:HyperLinkField DataNavigateUrlFields="Story" 
                    DataNavigateUrlFormatString="http://jira.redprairie.com/browse/{0}" 
                    DataTextField="Story" HeaderText="" 
                    NavigateUrl="http://jira.redprairie.com/browse/{0}" Text="" />
            <asp:BoundField DataField="Priority" HeaderText="Priority" 
                SortExpression="Priority" />
            <asp:BoundField DataField="Progress" HeaderText="Progress" 
                SortExpression="Progress" />
            <asp:BoundField DataField="status" HeaderText="status" 
                SortExpression="status" />
            <asp:BoundField DataField="orig_est" HeaderText="orig_est" 
                SortExpression="orig_est" />
            <asp:BoundField DataField="rem_est" HeaderText="rem_est" 
                SortExpression="rem_est" />
        </Columns>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSourceWeeklyUpdate" runat="server" 
        ConnectionString="<%$ ConnectionStrings:LocalConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:LocalConnectionString.ProviderName %>" SelectCommand=" select team, goal, task_id Story, goalpriority.name Priority, goalstatus.name Progress, status, orig_est, rem_est
   from goals
   join goalpriority
     on (goalpriority.id = goals.priority)
   join goalstatus
     on (goalstatus.id = goals.progress)
 where rev is null
 order by team, priority, goal, Story"></asp:SqlDataSource>
    <asp:TextBox ID="txtSprint" runat="server" Visible="False"></asp:TextBox>
    </form>
</body>
</html>
